package besta.moon.engine.table;

import java.io.File;

import besta.moon.engine.Database;
import besta.moon.engine.Table;
import besta.moon.util.MoonUtils;

public class Lobs extends Table {

    public Lobs(Table table) throws Exception {
        super(table.database, table.name);
        raFile = MoonUtils.openRaFile(getFile(database), database.isReadOnly());
    }

    @Override
    public File getFile(Database database) {
        return new File(MoonUtils.createLobFileName(database, name));
    }

}
